<?php
namespace app\taobao\command;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/6
 * Time: 17:59
 */
use think\console\Command;
use think\console\Input;
use think\console\Output;
use app\common\model\Menu as MenuModel;
use \Redis;

class Spider extends Command{

    protected function configure(){
        $this->setName('spider')->setDescription("just test spider");
    }

    protected function execute(Input $input,Output $output ){

       for($i = 0;$i<10000;$i++){
           $menu = MenuModel::all();
           var_dump($menu);
       }
       $output->writeln("just a test");
    }


}

